package com.ice.body.dict.service.impl;
import com.ice.body.dict.dao.SwitchDao;
import com.ice.body.dict.model.SwitchModel;
import com.ice.body.dict.service.SwitchService;
import com.ice.base.dao.BaseDao;
import com.ice.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
 * Created with GuoYanBin.
 * Description:配置开关-配置开关 serviceImpl
 * Date: 2021-07-09
 * Time: 11:45
 */
@Service
public class SwitchServiceImpl extends BaseServiceImpl<SwitchModel> implements SwitchService{
    @Resource 
    private SwitchDao dao;
    @Override
    public BaseDao<SwitchModel> getBaseDao() {
        return dao;
    }

    @Override
    public SwitchModel getByCode(String code) {
        return dao.getByCode(code);
    }
}
